package com.factory.iamp.pojo;

import com.factory.iamp.utils.helper.CheckTypeCode;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CheckLog {
    private int tid;
    private int oid;
    private String type;
    private Timestamp created_at;

    public void setType(String type) {
        this.type = CheckTypeCode.makeTypeCode(Integer.parseInt(type)).getBase();
    }
}